package com.ruoyi.cms.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章对象 cms_article
 * 
 * @author fyliu
 * @date 2025-04-11
 */
public class CmsArticle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文章名称 */
    @Excel(name = "文章名称")
    private String title;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String avatar;

    /** 简介 */
    @Excel(name = "简介")
    private String brief;

    @Excel(name = "关键字")
    private String keyword;

    /** 内容 */
    private String content;

    /** 分享链接 */
    @Excel(name = "分享链接")
    private String shareUrl;

    /** 提取码 */
    //    @JsonIgnore
    @Excel(name = "提取码")
    private String shareCode;

    /** 图片列表 */
    @JsonIgnore
    private String imgList;

    @JsonIgnore
    private String aiContent;

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getAiContent() {
        return aiContent;
    }

    public void setAiContent(String aiContent) {
        this.aiContent = aiContent;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setBrief(String brief) 
    {
        this.brief = brief;
    }

    public String getBrief() 
    {
        return brief;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setShareUrl(String shareUrl) 
    {
        this.shareUrl = shareUrl;
    }

    public String getShareUrl() 
    {
        return shareUrl;
    }

    public void setShareCode(String shareCode) 
    {
        this.shareCode = shareCode;
    }

    public String getShareCode() 
    {
        return shareCode;
    }

    public void setImgList(String imgList) 
    {
        this.imgList = imgList;
    }

    public String getImgList() 
    {
        return imgList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("avatar", getAvatar())
            .append("brief", getBrief())
            .append("content", getContent())
            .append("shareUrl", getShareUrl())
            .append("shareCode", getShareCode())
            .append("imgList", getImgList())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
